package com.zust.zst.service.impl;

import com.zust.zst.dao.entity.Teacher;
import com.zust.zst.dao.entity.Student;
import com.zust.zst.dao.mapper.login.LoginMapper;
import com.zust.zst.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author gavin
 * @date 2022/11/13 17:31
 */
@Service("loginServiceImpl")
public class LoginServiceImpl implements LoginService {
    @Resource
    private LoginMapper loginMapper;

    public Teacher teacherLogin(Integer uid, String password, Integer type) {
        return loginMapper.teacherLogin(uid, password, type);
    }

    public Student studentLogin(Integer uid, String password) {
        return loginMapper.studentLogin(uid, password);
    }
}
